<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="ChangePassWord.aspx.cs" Inherits="ChangePassWord" %>

<asp:Content ID="Content1" ContentPlaceHolderID="titlePlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <table style="padding-left: 14px;">
        <tr>
            <td style="width: 120px;">
                <%=Utilitys.Dictionary["UserName"].ToString()%>
            </td>
            <td style="text-align: left;">
                <asp:TextBox ID="txtName" MaxLength="20" Width="200" runat="server" Enabled="False" /><asp:RequiredFieldValidator
                    ID="nameRequiredFieldValidator" ControlToValidate="txtName" runat="server" Width="150px"><%=Utilitys.Dictionary["InvalidUserName"].ToString()%></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>
                <%=Utilitys.Dictionary["PasswordOld"].ToString()%>
            </td>
            <td style="text-align: left;">
                <asp:TextBox ID="txtPassword" MaxLength="100" Width="200" runat="server" TextMode="Password" /><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" ControlToValidate="txtPassword" runat="server" ErrorMessage="Please input to Old password"
                    Width="139px"><%=Utilitys.Dictionary["InvalidPasswordOld"].ToString()%></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>
                <%=Utilitys.Dictionary["PasswordNew"].ToString()%>
            </td>
            <td style="text-align: left;">
                <asp:TextBox ID="txtChangePassword" MaxLength="100" Width="200" runat="server" TextMode="Password" /><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator2" ControlToValidate="txtChangePassword" runat="server"
                    ErrorMessage="Please input to New password" Width="156px"><%=Utilitys.Dictionary["InvalidPasswordNew"].ToString()%></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>
                <%=Utilitys.Dictionary["PasswordRenew"].ToString()%>
            </td>
            <td style="text-align: left;">
                <asp:TextBox ID="txtRetypePassword" MaxLength="100" Width="200" runat="server" TextMode="Password" /><asp:CompareValidator
                    ID="CompareValidator1" runat="server" ControlToCompare="txtChangePassword" ControlToValidate="txtRetypePassword"
                    Width="175px"><%=Utilitys.Dictionary["InvalidRetpyePassword"].ToString()%></asp:CompareValidator></td>
        </tr>
        <tr style="text-align:center;">
            <td colspan="2">
                <asp:Button ID="saveButton" runat="server" CssClass="bbutton" OnClick="saveButton_Click"
                    Width="78px" />&nbsp;&nbsp;
                <asp:Button ID="cancelButton" runat="server" CssClass="bbutton" CausesValidation="false"
                    OnClick="cancelButton_Click" /></td>
        </tr>
        <tr>
            <td style="height: 18px">
                <asp:Label ID="Label2" runat="server" Width="125px"></asp:Label></td>
            <td style="width: 100px; height: 18px;">
                <asp:Label ID="lblmsg" runat="server" ForeColor="Red" Width="435px"></asp:Label></td>
        </tr>
    </table>

    <script type="text/javascript">
        var i = document.getElementById("<%=saveButton.ClientID%>");
        i.value = "<%=Utilitys.Dictionary["Save"]%>";
        var h = document.getElementById("<%=cancelButton.ClientID%>");
        h.value = "<%=Utilitys.Dictionary["Cancel"]%>";        
    </script>

</asp:Content>
